/*
 * Algo.java
 *
 * Created on December 14, 2000, 8:40 PM
 */

package com.gemalto.Kryptik.Algo;

import com.gemalto.Kryptik.Algo.*;
import com.gemalto.Kryptik.Gui.AlgoPanel;

/**
 * 
 * @author  STURC
 * @version 
 */

public abstract class AbstractAlgo {

	    
		/**
		* name of alghorithm. Used as item label in menus.
		*/
		String algoName;

		/**
		* short name or abreviation used in indicator in bottom-right
		* corner of the window
		*/
		String shortName;

		AlgoPanel panel;


		public void setAlgoName(String name){
			algoName=name;
		}


		public void setShortName(String name){
			shortName=name;
		}


		public AlgoPanel getPanel(){
				return panel;
		}

		public void setPanel(AlgoPanel panel){
				this.panel=panel;
				panel.update();
		}

		public String toString(){
				return algoName;
		}

		public String getName(){
				return algoName;
		}


		public String getShortName(){
				return shortName;
		}


		public void activate() throws AlgoException {
		}

		public void deactivate() throws AlgoException {
		}
}

// vim:tabstop=4:nowrap
